<div class="centre">
  <h2>Commande JSON :</h2>
  <input type="text" ng-model="cmdJSON"/>
  <div> exemples collègues : <br/>
    exemple momo : [{id:"1",ac:"cl",pa:{pin:"3",dur:"100",nb:"10"}}] <br/>
    exemple auvinet : [{"id":"1","pa":{"val":"1","pin":"8","mod":"b"},"ac":"pw"}]
  </div>

  <div>
    <button class="center-block btn btn-sm btn-warning" ng-click="displayList = !displayList" >Liste Aruinos</button>
    <div class="well" ng-show="displayList" ng-repeat="arduino in arduinos" >
      <input type="checkbox" ng-model="arduino.checked" ng-checked="arduino.checked">
      <span>{{arduino.ip}}</span>
    </div>
  </div>
  <button class="btn btn-info" ng-click="valider()">Exécuter</button>

  <div class="row centre">
    <ANY ng-switch="indexReponse" ng-model="indexReponse">
    <ANY ng-switch-when="0"></ANY>
    <ANY ng-switch-when="1"><success-callback-directive></success-callback-directive></ANY>
    <ANY ng-switch-when="2"><error-callback-directive info="info"></<error-callback-directive></ANY>
    <ANY ng-switch-when="3"><warning-callback-directive  ></warning-callback-directive></ANY>
    <ANY ng-switch-default></ANY>
    </ANY>
    <div ng-repeat="reponse in reponses">
      {{reponse}}
    </div>        
  </div>
</div>